// https://nuxt.com/ds/api/configuration/nuxt-config

import process from "node:process";
export default defineNuxtConfig({
  spaLoadingTemplate: undefined,
  _nuxtConfigFiles: undefined,
  runtimeConfig: {
    apiUrl: process.env.API_URL,
    public: {
      apiUrl: process.env.API_URL,
    }
  },
  devServer: {
    port: 3090,
  },
  app: {
    head: {
      "meta": [
        {
          "name": "viewport",
          "content": "width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no, viewport-fit=cover"
        },
        {
          "name": "baidu-site-verification",
          "content": "codeva-eAfYtEEG6h"
        },
        {
          "name": "google-site-verification",
          "content": "DMWHpPrbEQGGSC9TriryKumIKMIhHsbs3k48Uv2yYtM"
        },
        {
          "charset": "utf-8"
        }
      ],
      link: [
        {
          rel: 'dns-prefetch',
          href: '//haoyupay.com'
        },
        {
          rel: 'dns-prefetch',
          href: '//static.travel.haoyupay.com'
        },
      ],
      "style": [],
      "script": [
        { src: 'https://www.googletagmanager.com/gtag/js?id=G-SQK6PMGMS3', async: true },
        { src: 'https://hm.baidu.com/hm.js?9e208230f1bdb09862c4c3cf29e4cc7c', async: true },
      ],
      noscript: [
      ]
    }
  },
  css: ['~/assets/css/app.scss'],
  devtools: { enabled: true },
  // @ts-ignore
  experimental: { inlineSSRStyles: false },
  modules: [
    "@nuxt/ui",
    "@nuxtjs/color-mode",
    "nuxtjs-naive-ui",
    '@pinia/nuxt',
    '@pinia-plugin-persistedstate/nuxt',
    "@nuxtjs/mdc",
    "@nuxt/image",
    "@nuxt/eslint"
  ],
  eslint: {
    config: {
      stylistic: {
        indent: 'tab',
        semi: true,
        // ...
      }
    }
  }
})